﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TypeSelect.aspx.cs" Inherits="OperaEntry_TypeEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>选择类别</title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:Label ID="MessageLabel" runat="server"></asp:Label>
    <div>
        <asp:TreeView id="TypeTree" runat="server"  ShowLines="True" Font-Size="12px">
        </asp:TreeView>
    </div>

    </form>
    <script type="text/javascript">
    window.onblur = function() {
    window.focus();
    }
    function selectNode(typeId,typeName) {
        if(window.opener) {
            var keyCtl = window.opener.document.getElementById('<%= Request.Params["keyCtl"] %>');
            var valueCtl = window.opener.document.getElementById('<%= Request.Params["valueCtl"] %>');
            if(keyCtl) keyCtl.value = typeId;
            if(valueCtl) valueCtl.value = typeName;
            window.opener = null;
            window.close();
        }
    }
    </script>
</body>
</html>
